package lumis.service.seo.robotstxt;


import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lumis.portal.event.persistence.PortalEventEntityListener;

import org.hibernate.annotations.GenericGenerator;





/**
 * @version $Revision: 10825 $ $Date: 2009-08-04 12:36:40 -0300 (Tue, 04 Aug 2009) $
 * @since 5.0.0
 */
@Entity
@Table(name="lum_RbtsUserAgentPerm")
@GenericGenerator(name="portal-guid", strategy="lumis.portal.dao.hibernate.GuidGenerator")
@EntityListeners(value=PortalEventEntityListener.class)
public class UserAgentPermission
{
	@Id @GeneratedValue(generator="portal-guid")
	private String id;
	
	private int type;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="userAgentId")
	private UserAgent userAgent;
	
	/**
	 * Returns the userAgent.
	 * @return the userAgent
	 * @since 5.0.0
	 */
	public UserAgent getUserAgent()
	{
		return userAgent;
	}
	/**
	 * Sets the userAgent.
	 * @param userAgent the userAgent value to set.
	 * @since 5.0.0
	 */
	public void setUserAgent(UserAgent userAgent)
	{
		this.userAgent = userAgent;
	}
	private String value;
	
	/**
	 * Returns the id.
	 * @return the id
	 * @since 5.0.0
	 */
	public String getId()
	{
		return id;
	}
	/**
	 * Sets the id.
	 * @param id the id value to set.
	 * @since 5.0.0
	 */
	public void setId(String id)
	{
		this.id = id;
	}
	/**
	 * Returns the type.
	 * @return the type
	 * @since 5.0.0
	 */
	public int getType()
	{
		return type;
	}
	/**
	 * Sets the type.
	 * @param type the type value to set.
	 * @since 5.0.0
	 */
	public void setType(int type)
	{
		this.type = type;
	}
	/**
	 * Returns the userAgentId.
	 * @return the userAgentId
	 * @since 5.0.0
	 */

	public String getValue()
	{
		return value;
	}
	/**
	 * Sets the value.
	 * @param value the value value to set.
	 * @since 5.0.0
	 */
	public void setValue(String value)
	{
		this.value = value;
	}
	

}
